package com.bbcare.oms.plat.store.ibatis;

import com.bbcare.oms.plat.entity.Account;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public abstract interface IAccountDAO
{
  @Select({"select * from au_account where id=#{id}"})
  @Results({@org.apache.ibatis.annotations.Result(property="tenant.id", column="tenant_id")})
  public abstract Account select(String paramString)
    throws Exception;
  
  @Update({"update au_account set username=#{username},password=#{password}", "where id=#{id}"})
  public abstract int update(Account paramAccount)
    throws Exception;
  
  @Select({"select * from au_account limit #{start},#{rows}"})
  public abstract List<Account> query(@Param("start") int paramInt1, @Param("rows") int paramInt2)
    throws Exception;
  
  @Select({"select * from au_account where username=#{username}"})
  @Results({@org.apache.ibatis.annotations.Result(property="tenant.id", column="tenant_id")})
  public abstract List<Account> getAccountByUsername(String paramString)
    throws Exception;
  
  @Update({"update au_account set password=#{password} where username=#{username}"})
  public abstract int updatePassWord(@Param("password") String paramString1, @Param("username") String paramString2)
    throws Exception;
}


/* Location:              C:\Users\ZCL\Desktop\oms\oms\oms\WEB-INF\classes\com.zip!\com\bbcare\oms\plat\store\ibatis\IAccountDAO.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */